import type {
  patientHomeKnowledgeReq,
  patientHomeKnowledgeApi,
  homePageDocReq,
  homePageDocApi,
  likePostReq
} from '@/types/home'
import request from '@/utils/request'

// 首页列表
export const patientHomeKnowledge = (data: patientHomeKnowledgeReq) =>
  request<patientHomeKnowledgeApi>('/patient/home/knowledge', 'get', data)

// 推荐关注列表
export const homePageDoc = (data: homePageDocReq) =>
  request<homePageDocApi>('/home/page/doc', 'get', data)

// 关注
export const likePost = (data: likePostReq) => request('/like', 'post', data)
